<?php

include("includes/class_db.php");
$db = new \db\database();
$config = array();

include("includes/class_config.php");
$config["base"] = new \config\config();

include("includes/class_categoria.php");
include("includes/class_secciones.php");
include("includes/class_imagenes.php");
include("includes/class_upload.php");

if ( isset($_POST["action"]) and $_POST["action"] == "upload") {
    $up = new \upload\upload("archivo");
    //echo var_dump($up->saveFiles("files/"));
}

?>
<html>
    <head>

    </head>
    <body>
        <form method="post" enctype="multipart/form-data">
            <input name="archivo" type="file" size="35" />
            <input name="enviar" type="submit" value="Upload File" />
            <input name="action" type="hidden" value="upload" />
        </form>
    </body>
</html>

